import request from '@/utils/request.js';

// 车场列表
export function getParkList(data) {
    return request({
        url: '/parkingLot/get-parking-lot-base-info-list',
        method: 'get',
        params:data
    });
}

// 通道接口
export function getDrivewayList(data) {
    return request({
        url: '/parkingLot/get-parking-lot-driveway-list-by-type',
        method: 'get',
        params:data
    });
}


//手动入场接口

export function carEventEntry(data) {
    return request({
        url: '/box/car-event',
        method: 'get',
        params:data
    });
}
// 根据停车场id获取当前的剩余车位数

export function getParkPlace(data) {
    return request({
        url: '/box/get-places',
        method: 'get',
        params:data
    });
}

// 获取在场记录;
export function getInParkingPage(data) {
    return request({
        url: '/box/get-in-parking-page',
        method: 'get',
        params:data
    });
}

// 在场车操作出场
export function personneCarExit(data) {
    return request({
        url: '/box/personnel-car-exit',
        method: 'get',
        params:data
    });
}
// 现金和免费放行;
export function cashFree(data) {
    return request({
        url: '/box/payment',
        method: 'post',
        data
    });
}